<template>
	<view class="content">
		<!-- <image :src='STATIC_URL+"qdy.png"' mode="aspectFill"></image> -->
	</view>
</template>

<script>
	let isLogin;
	export default {
		data() {
			return {
				data:{
				}
			}
		},
		
		onLoad() {
			isLogin = uni.getStorageSync('USER_TOKEN_7863') ;
			console.log(isLogin)
			if (isLogin) {  
				uni.switchTab({
					url: '/pages/tabBar/home/home',
					success: () => {
						// #ifdef APP-PLUS
						plus.navigator.closeSplashscreen();
						// #endif
					}
				})
				return
			} else {
				uni.reLaunch({
					url: '/pagetabBar/loginPage/loginPage',
					success: () => {
						// #ifdef APP-PLUS
						plus.navigator.closeSplashscreen();
						// #endif
					}
				})
			}
		},
	
	}
</script>

<style lang="scss">
	page {
		background: #fff;
		width: 100%;
		height: 100%;
		overflow: hidden;
		 // background: url(image-path('qdy.png')) no-repeat;
		 //        background-size: 100% auto;
		 image{
			 width: 100%;
			 height: 100%;
		 }
	}
</style>
